package com.rem.designPattern.memento备忘录.white;

/**
 * 角色状态管理者类
 *
 * @author Rem
 * @date 2022-11-25
 */
public class RoleStateCaretaker {

    private final RoleStateMemento roleStateMemento;

    public RoleStateCaretaker(GameRole gameRole) {
        this.roleStateMemento = new RoleStateMemento(gameRole.getVit(), gameRole.getAtk(), gameRole.getDef());
    }

    public RoleStateMemento getRoleStateMemento() {
        return roleStateMemento;
    }
}
